﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014A9 RID: 5289
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UpdateEnergyScNotify : IMessage<UpdateEnergyScNotify>, IMessage, IEquatable<UpdateEnergyScNotify>, IDeepCloneable<UpdateEnergyScNotify>, IBufferMessage
	{
		// Token: 0x1700428A RID: 17034
		// (get) Token: 0x0600EC64 RID: 60516 RVA: 0x002774DD File Offset: 0x002756DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UpdateEnergyScNotify> Parser
		{
			get
			{
				return UpdateEnergyScNotify._parser;
			}
		}

		// Token: 0x1700428B RID: 17035
		// (get) Token: 0x0600EC65 RID: 60517 RVA: 0x002774E4 File Offset: 0x002756E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UpdateEnergyScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700428C RID: 17036
		// (get) Token: 0x0600EC66 RID: 60518 RVA: 0x002774F6 File Offset: 0x002756F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UpdateEnergyScNotify.Descriptor;
			}
		}

		// Token: 0x0600EC67 RID: 60519 RVA: 0x002774FD File Offset: 0x002756FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateEnergyScNotify()
		{
		}

		// Token: 0x0600EC68 RID: 60520 RVA: 0x00277505 File Offset: 0x00275705
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateEnergyScNotify(UpdateEnergyScNotify other) : this()
		{
			this.energyInfo_ = ((other.energyInfo_ != null) ? other.energyInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EC69 RID: 60521 RVA: 0x0027753A File Offset: 0x0027573A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UpdateEnergyScNotify Clone()
		{
			return new UpdateEnergyScNotify(this);
		}

		// Token: 0x1700428D RID: 17037
		// (get) Token: 0x0600EC6A RID: 60522 RVA: 0x00277542 File Offset: 0x00275742
		// (set) Token: 0x0600EC6B RID: 60523 RVA: 0x0027754A File Offset: 0x0027574A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RotaterEnergyInfo EnergyInfo
		{
			get
			{
				return this.energyInfo_;
			}
			set
			{
				this.energyInfo_ = value;
			}
		}

		// Token: 0x0600EC6C RID: 60524 RVA: 0x00277553 File Offset: 0x00275753
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UpdateEnergyScNotify);
		}

		// Token: 0x0600EC6D RID: 60525 RVA: 0x00277561 File Offset: 0x00275761
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UpdateEnergyScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.EnergyInfo, other.EnergyInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EC6E RID: 60526 RVA: 0x00277594 File Offset: 0x00275794
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.energyInfo_ != null)
			{
				num ^= this.EnergyInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EC6F RID: 60527 RVA: 0x002775D0 File Offset: 0x002757D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EC70 RID: 60528 RVA: 0x002775D8 File Offset: 0x002757D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EC71 RID: 60529 RVA: 0x002775E1 File Offset: 0x002757E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.energyInfo_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.EnergyInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EC72 RID: 60530 RVA: 0x00277614 File Offset: 0x00275814
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.energyInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.EnergyInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EC73 RID: 60531 RVA: 0x00277654 File Offset: 0x00275854
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UpdateEnergyScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.energyInfo_ != null)
			{
				if (this.energyInfo_ == null)
				{
					this.EnergyInfo = new RotaterEnergyInfo();
				}
				this.EnergyInfo.MergeFrom(other.EnergyInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EC74 RID: 60532 RVA: 0x002776A8 File Offset: 0x002758A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EC75 RID: 60533 RVA: 0x002776B4 File Offset: 0x002758B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 114U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.energyInfo_ == null)
					{
						this.EnergyInfo = new RotaterEnergyInfo();
					}
					input.ReadMessage(this.EnergyInfo);
				}
			}
		}

		// Token: 0x04005D7E RID: 23934
		private static readonly MessageParser<UpdateEnergyScNotify> _parser = new MessageParser<UpdateEnergyScNotify>(() => new UpdateEnergyScNotify());

		// Token: 0x04005D7F RID: 23935
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005D80 RID: 23936
		public const int EnergyInfoFieldNumber = 14;

		// Token: 0x04005D81 RID: 23937
		private RotaterEnergyInfo energyInfo_;
	}
}
